package com.miluGame.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.miluGame.entity.UserGroup;
import com.miluGame.mapper.UserGroupMapper;
import com.miluGame.service.UserGroupService;

@Service
public class UserGroupImpl implements UserGroupService {

	@Autowired
	private UserGroupMapper userGroupMapper;
	
	
	@Override
	public List<UserGroup> queryAll(UserGroup t) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void delete(String id) throws Exception {
		// TODO Auto-generated method stub

	}

	@Override
	public void update(UserGroup t) throws Exception {
		// TODO Auto-generated method stub

	}

	@Override
	public UserGroup getById(String id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void add(UserGroup t) throws Exception {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void delete(String[] ids) throws Exception {
		// TODO Auto-generated method stub
		
	}

	@Override
	public List<Map> queryUserGroupByPage(int pageNum, int pageSize) {
		Map paramMap = new HashMap();
		paramMap.put("pageNum", pageNum);
		paramMap.put("pageSize", pageSize);
		return userGroupMapper.getUserGroup(paramMap);
	}



}
